/*
 * @作者: kerwin
 * @公众号: 大前端私房菜
 */
import React from 'react'
import { useSearchParams } from 'react-router-dom'

export default function Detail(props) {
    // console.log(window.location.href)
    // const [searchParams, setSearchParams] = useSearchParams()
    // console.log(searchParams.get("id"))
    // const [searchParams,setSearchParams]=useSearchParams();
    // console.log(searchParams,setSearchParams.get("id"))
    console.log(props)
    return (
        <div>
            Detail

            <button onClick={()=>{
                // setSearchParams({id:1000})
            }}>猜你喜欢</button>
        </div>
    )
}
